<template>
	<view class="appointment">
		<view class="img">
			<image class="image" src="../../static/img/succ.png" mode="aspectFit"></image>
			<view>努力抢单中...</view>
		</view>
		<view class="buttom">
			<view class="btn">
				<button class="hone" @click="golink('../main/main')">回到首页</button>
			</view>
			<view class="btn">
				<button class="hone2" @click="golink2('../OrderList/OrderList')">我的抢单</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			golink(link) {
				uni.reLaunch({
					url: link,
				});
			},
			golink2(link) {
				// 跳转到其他页面
				uni.navigateTo({
					url: link
				})
			},
		}
	}
</script>

<style lang="less">
	.appointment {
		display: flex;
		flex-direction: column;
		width: 100%;

		.img {
			border-top: 5px solid #F1F1F1;
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			.image {
				width: 100px;
				height: 120px;
			}
		}

		.buttom {
			height: 140px;
			display: flex;
			align-content: center;
			justify-content: space-around;

			.btn {
				width: 40%;

				.hone {
					background-color: #03AD8F;
					color: #fff;
				}

				.hone2 {
					background-color: #1D7BFF;
					color: #fff;
				}
			}
		}
	}
</style>
